package org.tps.project.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the planning_amelioratif database table.
 * 
 */
@Entity
@Table(name="planning_amelioratif")
@NamedQuery(name="PlanningAmelioratif.findAll", query="SELECT p FROM PlanningAmelioratif p")
public class PlanningAmelioratif implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="code_planning_amelioratif")
	private Integer codePlanningAmelioratif;

	@Column(name="actions_a_realiser_a")
	private String actionsARealiserA;

	@Temporal(TemporalType.DATE)
	@Column(name="date_et_heure_debut_a")
	private Date dateEtHeureDebutA;

	@Temporal(TemporalType.DATE)
	@Column(name="date_et_heure_fin_a")
	private Date dateEtHeureFinA;

	@Column(name="points_de_maintenance_a")
	private String pointsDeMaintenanceA;

	//bi-directional many-to-one association to EquipePlanningAmelioratif
	@OneToMany(mappedBy="planningAmelioratif")
	private List<EquipePlanningAmelioratif> equipePlanningAmelioratifs;

	public PlanningAmelioratif() {
	}

	public Integer getCodePlanningAmelioratif() {
		return this.codePlanningAmelioratif;
	}

	public void setCodePlanningAmelioratif(Integer codePlanningAmelioratif) {
		this.codePlanningAmelioratif = codePlanningAmelioratif;
	}

	public String getActionsARealiserA() {
		return this.actionsARealiserA;
	}

	public void setActionsARealiserA(String actionsARealiserA) {
		this.actionsARealiserA = actionsARealiserA;
	}

	public Date getDateEtHeureDebutA() {
		return this.dateEtHeureDebutA;
	}

	public void setDateEtHeureDebutA(Date dateEtHeureDebutA) {
		this.dateEtHeureDebutA = dateEtHeureDebutA;
	}

	public Date getDateEtHeureFinA() {
		return this.dateEtHeureFinA;
	}

	public void setDateEtHeureFinA(Date dateEtHeureFinA) {
		this.dateEtHeureFinA = dateEtHeureFinA;
	}

	public String getPointsDeMaintenanceA() {
		return this.pointsDeMaintenanceA;
	}

	public void setPointsDeMaintenanceA(String pointsDeMaintenanceA) {
		this.pointsDeMaintenanceA = pointsDeMaintenanceA;
	}

	public List<EquipePlanningAmelioratif> getEquipePlanningAmelioratifs() {
		return this.equipePlanningAmelioratifs;
	}

	public void setEquipePlanningAmelioratifs(List<EquipePlanningAmelioratif> equipePlanningAmelioratifs) {
		this.equipePlanningAmelioratifs = equipePlanningAmelioratifs;
	}

	public EquipePlanningAmelioratif addEquipePlanningAmelioratif(EquipePlanningAmelioratif equipePlanningAmelioratif) {
		getEquipePlanningAmelioratifs().add(equipePlanningAmelioratif);
		equipePlanningAmelioratif.setPlanningAmelioratif(this);

		return equipePlanningAmelioratif;
	}

	public EquipePlanningAmelioratif removeEquipePlanningAmelioratif(EquipePlanningAmelioratif equipePlanningAmelioratif) {
		getEquipePlanningAmelioratifs().remove(equipePlanningAmelioratif);
		equipePlanningAmelioratif.setPlanningAmelioratif(null);

		return equipePlanningAmelioratif;
	}

}